package cn.ang.app.service.impl;

import cn.ang.app.mapper.AppCategoryMapper;
import cn.ang.app.pojo.AppCategory;
import cn.ang.app.service.AppCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AppCategoryServiceImpl implements AppCategoryService {

    @Resource
    private AppCategoryMapper appCategoryMapper;

    @Override
    public List<AppCategory> getAppCatagorys(Long parentId) {
        List<AppCategory> appCategories = appCategoryMapper.selectAppCategoryByParentId(parentId);
        return appCategories;
    }
}
